<%@page import="com.csxh.eshop.bean.Admin"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录结果页</title>
</head>
<body>

<h1>

<%   //从请求上下文对象中获取用户对象 
     Object user= request.getAttribute("user");
     if(null!=user){
    	 Admin admin=(Admin)user;
    	 out.append("用户名称：").append(admin.getUsername());
    	 out.append("<br/>");
    	 out.append("用户级别：").append(admin.getLevel());
    	 out.append("<br/>");
     }
%>

</h1>

</body>
</html>